AddScriptToEvaluateOnNewDocumentRequest

data class AddScriptToEvaluateOnNewDocumentRequest(source: String, worldName: String?)

Represents request frame that can be used with Page#addScriptToEvaluateOnNewDocument operation call.

Evaluates given script in every frame upon creation (before loading frame's scripts).

See also

Constructors

AddScriptToEvaluateOnNewDocumentRequest
Link copied to clipboard
fun AddScriptToEvaluateOnNewDocumentRequest(source: String, worldName: String? = null)

Properties

source
Link copied to clipboard
val source: String
worldName
Link copied to clipboard
val worldName: String? = null
If specified, creates an isolated world with the given name and evaluates given script in it.

Sources

jvm source
Link copied to clipboard